package com.nuc.workflowserver.model.pojo;

import com.nuc.workflowserver.common.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 用户-角色关联
 */
@Data
@NoArgsConstructor
@ToString
public class UserRole extends BaseEntity {

    @ApiModelProperty("用户-角色关联id")
    private String id;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("角色id")
    private String roleId;

    public UserRole(String userId) {
        this.userId = userId;
    }
}
